import React from 'react';
import {useLocation} from "react-router-dom";

function GoodsList(props) {
    const {id=0,type=0} = useLocation().state ?? {};
    return (
        <>
            <h3>商品列表页</h3>
            <p>id:{id}</p>
            <p>type:{type}</p>
        </>

    );
}

export default GoodsList;